tests/gpg-verify-data: Split out signature data
authorDan Nicholson <nicholson@endlessm.com>
Wed, 19 Jun 2019 21:31:18 +0000 (16:31 -0500)
committerDan Nicholson <nicholson@endlessm.com>
Fri, 24 Jan 2020 20:02:09 +0000 (13:02 -0700)
The full block with all 5 signatures remains, but this allows passing
individual signatures through the GPG verification APIs. The split was
done with `gpgsplit`, and looking at the output of `gpg --list-packets`
of the split and unsplit files appears correct.

Makefile-tests.am
tests/gpg-verify-data/README.md
tests/gpg-verify-data/lgpl2.sig0 [new file with mode: 0644]
tests/gpg-verify-data/lgpl2.sig1 [new file with mode: 0644]
tests/gpg-verify-data/lgpl2.sig2 [new file with mode: 0644]
tests/gpg-verify-data/lgpl2.sig3 [new file with mode: 0644]
tests/gpg-verify-data/lgpl2.sig4 [new file with mode: 0644]

index ef71df5c0e2f25c0f2f4c347e3f25e27d8040263..553f535c10b134175e0dee9362a9564e12d2503f 100644 (file)
@@ -229,7 +229,8 @@ dist_gpginsttest_revoc_DATA = \
 
 gpgvinsttestdir = $(installed_testdir)/gpg-verify-data
 dist_gpgvinsttest_DATA = $(addprefix tests/gpg-verify-data/, \
-       gpg.conf lgpl2 lgpl2.sig pubring.gpg secring.gpg trustdb.gpg)
+       gpg.conf lgpl2 lgpl2.sig lgpl2.sig0 lgpl2.sig1 lgpl2.sig2 lgpl2.sig3 \
+       lgpl2.sig4 pubring.gpg secring.gpg trustdb.gpg)
 endif
 endif
 
index d96fbad50bd98e6bc2800453582be180a340d5f6..9ca475813a0b0d9fd6467d728701b9aa60e92aa1 100644 (file)
@@ -1,5 +1,7 @@
 This is a GPG config directory for use with the OstreeGpgVerifyResult
-test cases. The test data (`lgplv2`) is signed with a variety of valid
-and invalid GPG keys in a detached signature file (`lgplv2.sig`).
+test cases. The test data (`lgpl2`) is signed with a variety of valid
+and invalid GPG keys in a detached signature file (`lgpl2.sig`). In
+addition, each detached signature is available in a separate file
+(`lgpgl2.sig<N>`).
 
 The passphrase for all the keys is `redhat`.
diff --git a/tests/gpg-verify-data/lgpl2.sig0 b/tests/gpg-verify-data/lgpl2.sig0
new file mode 100644 (file)
index 0000000..375c650
Binary files /dev/null and b/tests/gpg-verify-data/lgpl2.sig0 differ
diff --git a/tests/gpg-verify-data/lgpl2.sig1 b/tests/gpg-verify-data/lgpl2.sig1
new file mode 100644 (file)
index 0000000..83a6227
Binary files /dev/null and b/tests/gpg-verify-data/lgpl2.sig1 differ
diff --git a/tests/gpg-verify-data/lgpl2.sig2 b/tests/gpg-verify-data/lgpl2.sig2
new file mode 100644 (file)
index 0000000..ad0f420
Binary files /dev/null and b/tests/gpg-verify-data/lgpl2.sig2 differ
diff --git a/tests/gpg-verify-data/lgpl2.sig3 b/tests/gpg-verify-data/lgpl2.sig3
new file mode 100644 (file)
index 0000000..5c17ec6
Binary files /dev/null and b/tests/gpg-verify-data/lgpl2.sig3 differ
diff --git a/tests/gpg-verify-data/lgpl2.sig4 b/tests/gpg-verify-data/lgpl2.sig4
new file mode 100644 (file)
index 0000000..2d3989f
Binary files /dev/null and b/tests/gpg-verify-data/lgpl2.sig4 differ